<template>
    <div>
        <van-nav-bar id="reset" title="医生详情" left-arrow @click-left="backHandle" fixed z-index="100" />
        <div class="pageCon fuPage">


            <div class="doctorBox">
                <img :src="doctor.doctorPic" alt="">
                <div>
                    <span>姓名: <span>{{ doctor.doctorName }}</span> </span>
                    <span>职称：<span>{{ doctor.doctorTitle || '暂无信息' }}</span></span>
                    <span>出诊医院：<span>{{ doctor.hospitalName || '暂无信息' }}</span></span>
                </div>
            </div>
            <div class="conBox">
                <div>医生简介</div>
                <div>{{ doctor.doctorDetail || '暂无信息' }}</div>
            </div>
        </div>
    </div>

</template>

<script>
import { imgUrl } from '../../network/request'
export default {
    name: 'HomeR',
    data() {
        return {
            imgUrl,
            doctor: ''

        }
    },
    mounted() {

    },
    methods: {
        backHandle() {
            this.$router.back()
        },




    },
    created() {
        this.doctor = this.$router.history.current.query.doctor
        console.log(this.doctor);
    },
    //计算属性
    computed: {

    },
    filters: {

    }

}

</script>

<style lang='less' scoped>
.pageCon {
    box-sizing: border-box;
    padding: 112px 30px 0 !important;
    box-sizing: border-box;
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    // overflow: hidden;
}

.doctorBox {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.doctorBox>img {
    margin-bottom: 40px;
    width: 100%;
    max-height: 50vh;
    border-radius: 20px;
}

.doctorBox>div {
    display: flex;
    flex-direction: column;
    color: #666;
    font-size: 28px;
    font-weight: 400;
}

.doctorBox>div>span {
    margin-bottom: 24px;
}

.doctorBox>div>span>span {
    // font-size: 32px;
    font-weight: bold;
    color: #333;
}

.conBox {
    margin-top: 40px;
    width: 100%;
    font-size: 28px;
    color: #333;
    line-height: 38px;
}

.conBox>div:first-child {
    margin-bottom: 20px;
    font-size: 32px;
    color: #333;
    font-weight: bold;
}


#reset /deep/ .van-nav-bar__left .van-nav-bar__text,
#reset /deep/ .van-nav-bar__left .van-icon {
    color: #333 !important;
}
</style>